import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
  enableProdMode();
}

// registerMicroApps(microApps, {
//   beforeLoad: app => new Promise( (res, rej)=> {
//     console.log('beforeLoad', app.name);
    
//   })
//   ,
//   beforeMount: [
//     app => new Promise((resolve, reject) => {
//       console.log('before', app.name);
//       resolve(null);
//     }),
//   ],
//   afterMount: [
//     app => new Promise((resolve, reject) => {
//       console.log('after', app.name);
//       resolve(null);
//     })
//   ],
//   afterUnmount: [
//     app => new Promise((resolve, reject) => {
//       console.log('afterUnmount', app.name);
//       resolve(null);
//     }),
//   ],

// })
// start() ;
platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));
